from users.models import User
from rest_framework import serializers
from django.contrib.auth.models import Group

class AdminPermissionSerializer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'

class GroupPermissionSerializer(serializers.ModelSerializer):
    class Meta:
        model = Group
        fields = "__all__"